// // 公钥加密（每次加密结果不一样） 私钥解密   成对出现
//
// const JSEncrypt = require('jsencrypt');
//
// const crypt = new JSEncrypt();
//
// const PUBLIC_KEY = "-----BEGIN PUBLIC KEY-----\n" +
//     "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA29isUqIjHt40K7PrSSao\n" +
//     "t6kw7kxnktWQ0cyJwrnnoT9RKQ3B+LuFAmASP6Nux4iUA5KhvP3AAS81XKHwB+Dl\n" +
//     "gKnB3X/2Hbsnm8Pbh9sKVB1pubA0v4BLmqbxLuGqr2jgixB6HTTLYlxvQ/Jr2eA8\n" +
//     "Pb8ldYs6B5O/4jPcEl7e70LAxaGMaGHPa9rPS1FWxlmAJH9gJMsQNGYuPJP9ZEIS\n" +
//     "YK/LaMfZYOIAgv46vHh0Ty90OwAMIvQvRam5xhwMpxLJj8swXTNl+eM5cIm68C1k\n" +
//     "bhaili0ZDf5auISRqflu2cZMgjM+eJ314eN+vuW34EzdIx5ff3VphGhb4IB0PGjk\n" +
//     "MwIDAQAB\n" +
//     "-----END PUBLIC KEY-----"
//
// crypt.setPublicKey(PUBLIC_KEY)
//
// let info = "hello world"
//
// info_encrypted = crypt.encrypt(info)
//
// console.log(info_encrypted)
//
//
// const PRIVATE_KEY = "-----BEGIN RSA PRIVATE KEY-----\n" +
//     "MIIEpQIBAAKCAQEA29isUqIjHt40K7PrSSaot6kw7kxnktWQ0cyJwrnnoT9RKQ3B\n" +
//     "+LuFAmASP6Nux4iUA5KhvP3AAS81XKHwB+DlgKnB3X/2Hbsnm8Pbh9sKVB1pubA0\n" +
//     "v4BLmqbxLuGqr2jgixB6HTTLYlxvQ/Jr2eA8Pb8ldYs6B5O/4jPcEl7e70LAxaGM\n" +
//     "aGHPa9rPS1FWxlmAJH9gJMsQNGYuPJP9ZEISYK/LaMfZYOIAgv46vHh0Ty90OwAM\n" +
//     "IvQvRam5xhwMpxLJj8swXTNl+eM5cIm68C1kbhaili0ZDf5auISRqflu2cZMgjM+\n" +
//     "eJ314eN+vuW34EzdIx5ff3VphGhb4IB0PGjkMwIDAQABAoIBAQCmglw6Fe1twrRW\n" +
//     "6WVqOSqOOEoEIsBLmQ+fp0ArySwjl9Y7ttzULArYurT3mCweWlZowlVX1ATpoLzU\n" +
//     "1R38iZypr2lS/0kESaz9MAGEyyTugnyCFHBPHrekgY6oiGkDg/aVvTwQBN2KOSJY\n" +
//     "nzKKiWh3B+AyP+oKtSAfDlI/Y7WMFmaH6VSVXgLVEH6oF5JEg9m4EkNh5Nq4U/dI\n" +
//     "t+A9Tm55ctm2Z/rxeRx2RsO6gF9sJNpPlScQBqQBiSLl/6hKQx8HdACKcWQ0Fp6g\n" +
//     "ZxKkUmVwPLralAMoLX+YpAkU/jQmC68SydVlBOFzKio5NrFI8F+O5IHTkOLCp/rl\n" +
//     "00dMIeMxAoGBAPGsUTVWcwH8nq+NDEQ/6oDcZAaiwDe+cPbzIw18trq8bB5Ko6/r\n" +
//     "Oud0o4E9WfLFzFed+1utsFMShqOdDo3RL/WkMZoc3RmnXibMoHRThKAC0e0Eyqsz\n" +
//     "ZS7Go8RnxDGH/2lPzSw9WZh3BuFXvFP+jpZJkso2pp6X8ae5qklmFJzrAoGBAOjh\n" +
//     "G9W1HHsdvYvbDrdZ9dj/lT0B072BzQ1CsHIzf+oiYKz7eXl9jbvhNHjI5VdfNUpr\n" +
//     "ZWtBK9jQyKyiGvhpjUT9N7WAzOKSWBX+FJKEZK4QOnSuNxz1W18F/8ypA9SbSWv4\n" +
//     "RlocjucsKNmlJkB6VUi8bQ1ygdeJNxbF+UdQg2PZAoGBAJSQudtwKYMvKN4Cd2f9\n" +
//     "YsuUsGjj5AZgrFEjZokEAdEJw+1bNQUQNkXTDjCE5qa3scaq97qEK8Dlwp8SDcBg\n" +
//     "uHrpVRTIaaM7oEV5xam9Leqv0R1DtNNJ5Qm8UzCKGbHZSMoUpKxtioaPpUsiBEQe\n" +
//     "WMlKsVJeBk+4WHYjTOuSNVnBAoGALDuVreHYpwnfFtFk2i6cI7tn/U57iWM+L2ab\n" +
//     "XRWrFi2xbynUyN6wLR95d/ewmAfdd2UuvlCCo4wEkcW4mbZyvsfZ7P+p6t8hHAxG\n" +
//     "nA3JkcZDVCZDEZ0I3eOl0pnHwHo+V+OweS0zd3VLzQsxWM3jpQ0lKYi2YNoPPKQd\n" +
//     "1Q3V5wECgYEAm0OKMJAJgTcdn4yYpAyJxwmprEbfOqwtkIivy6uQFsT9H0vML4/6\n" +
//     "F3N9/XcpMJn9OuHQQwlOZ25NSZEKFx7yxzl9DUasEO9zlmZEOj9GPYu5S48iXmKO\n" +
//     "Ttpv9khNUdhF78PgPnVg2rWiRjDTsiwE3oDtEchY1Bj+4wmFoCiesHg=\n" +
//     "-----END RSA PRIVATE KEY-----"
//
// crypt.setPrivateKey(PRIVATE_KEY)
//
// let origin = crypt.decrypt(info_encrypted)
// console.log(origin)


























